package service.impl;

import dao.UserinfoDao;
import dao.impl.UserinfoDaoImpl;
import entity.Userinfo;
import service.UserinfoService;

public class UserinfoServiceImpl implements UserinfoService {
    UserinfoDao dao=new UserinfoDaoImpl();
    @Override
    public Userinfo selectOne(String userAccount, String password) {
        Userinfo userinfo = dao.selectOne(userAccount, password);
        if (userinfo.getUsertype()==1){
            return userinfo;
        }
        return null;
    }
}
